package cn.tedu.store.service;

import java.util.List;

import cn.tedu.store.bean.Address;

public interface IAddressService {
	/**
	 * 添加address
	 * @param address
	 */
	void addAddress(Address address);
	
	List<Address> getAllAddressByUid(Integer uid);
	
	void setDefault(Integer uid,Integer id);
	/**
	 * 通过id查询Address信息，并返回该Address信息
	 */
	Address getAddressById(Integer id);
	/**
	 * 修改地址
	 */
	void updateAddress(Address address);
	/**
	 * 删除地址
	 */
	void deleteAddress(Integer id,Integer uid);
}
